<?php defined ( 'SYSPATH' ) or die ( 'No direct script access.' );
/**
 * Share block class
 * 
 * @author cks
 */
class Lib_Image{

	public static function getPostImage($postid,$img_info,$size) {

		$images=explode(";", trim($img_info));

		if(empty($images)){

			return "";

		}
		else{

			$site_url=Kohana::$config->load('site.url');

			return $site_url."/temp/post/post".$postid."-M".$size."-".$images[0];

		}
		
	}

	public static function getAlbumImage($id,$image) {

		return "/temp/album/album".$id."-M-".$image;
		
	}
}